﻿using DDD.Core;
using DDD.Domain;
using MediatR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DDD.Application
{
    public interface ICommandHandler<in TCommand> : IRequestHandler<TCommand> where TCommand : ICommand
    {
        //new Task Handle(TDomainEvent @event, CancellationToken cancellationToken);
    }
    public interface ICommandHandler<in TCommand, TResponse> : IRequestHandler<TCommand, TResponse> where TCommand : ICommand<TResponse>
    {
        //new Task Handle(TDomainEvent @event, CancellationToken cancellationToken);
    }
}
